<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/ExportBusiness/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>采购</span>
            <div class="titleright">
                <button class="layui-btn layui-btn-sm" style="margin-right:1em;" lay-filter="statistics"
                        lay-dropdown="{showBy: 'hover',align:'left', menus: [
                        {txt: '采购产品情况一览统计', event:'s1'},
                        <%--{txt: '付款情况统计', event:'s2'},--%>
                        <%--{txt: '采购预付款统计', event:'s3'},--%>
                        {txt: '采购排产及计划统计', event:'s4'},
                        {txt: '补货采购订单', event:'s5'},
                        {txt: '采购产品整合', event:'s6'},
                        {txt: '样品采购付款详情', event:'s7'},
                        ]}">
                    <span>统计</span>
                    <i class="layui-icon layui-icon-triangle-d"></i>
                </button>
            </div>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <form class="layui-form layui-from-pane" action="" id="editor-form" lay-filter="editor-form">
                            <div class="layui-inline">
                                <label class="layui-form-label">单据类型</label>
                                <div class="layui-input-inline">
                                    <select name="boxStatus">
                                        <option value="">全部</option>
                                        <option value="1">草稿箱</option>
                                        <option value="2">待批箱</option>
                                        <option value="3">已批箱</option>
                                        <option value="6">终止箱</option>
                                        <option value="4">完成箱</option>
                                        <option value="5">垃圾箱</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">单据信息</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="numberLike" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">销售合同号</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="salesContractNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">产品编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="productNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">规格编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="specNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">供应商名称</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="supplierName" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属操作员</label>
                                <div class="layui-input-inline" style="width: 200px;">
                                    <div id="executorCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="salesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptOperationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptSalesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">制单公司</label>
                                <div class="layui-input-inline">
                                    <select name="complaintUnit" id="complaintUnit" lay-search>
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">交货日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" id="startDeliverTime" name="startDeliverTime" placeholder="年 - 月 - 日">
                                    &nbsp;至&nbsp;<input type="text" class="layui-input starttime" id="endDeliverTime" name="endDeliverTime" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">签单日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" id="startSignTime" name="startSignTime" placeholder="年 - 月 - 日">
                                    &nbsp;至&nbsp;<input type="text" class="layui-input starttime" id="endSignTime" name="endSignTime" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submitform" style="margin-left: 10px">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear">重置</button>
                        </form>
                        <table class="layui-table" id="procurementselect" lay-filter="procurementtable"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="layui-row" id="remarkDiv" hidden>
        <form class="layui-form layui-from-pane" action="" style="margin-top:20px" id="share-formid" lay-filter="share-form">
            <input type="hidden" name="idHidden" id="idHidden">
            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block" style=" margin-left: 120px;">
                    <textarea id="remark" name="remark" placeholder="" class="layui-textarea" style="width: 300px"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="padding-top: 30px;">
                    <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="remarkSubmit" id="remarkSubmit">提交</button>
                    <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="shutDown" id="shutDown">关闭</button>
                </div>
            </div>
        </form>
</div>

<script type="text/html" id="procurementtoolbar">
<%--    {{# if(isNotResearchAndDevelopment==true || !isProcurementMethod){ }}--%>
<%--        <a class="layui-btn layui-btn-sm layui-btn-normal newfinished" id="new" style="margin-left: 10px" lay-event="newfinished">新建备货采购</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(!isProcurementMethod){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" id="copys" style="margin-left: 10px" lay-event="newaccessories">新建销售采购</a>--%>
<%--    {{# } }}--%>

        {{# if(!isProcurementMethod){ }}
            <a class="layui-btn layui-btn-sm layui-btn-normal newfinished" id="new" style="margin-left: 10px" lay-event="newfinished">新建备货采购</a>
            <a class="layui-btn layui-btn-sm layui-btn-normal" id="copys" style="margin-left: 10px" lay-event="newaccessories">新建销售采购</a>
        {{# } }}

    <a class="layui-btn layui-btn-sm layui-btn-normal" id="newSample" style="margin-left: 10px" lay-event="newSamplePurchase">新建样品采购</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="print" style="margin-left: 10px" lay-event="prints">打印</a>
    <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="feedback" style="margin-left: 10px" id="feedback">反馈</button>
</script>

<script type="text/html" id="procurementEditor">
    {{# if(d.purchaseBpmId==null || d.purchaseBpmId==''){ }}
        {{# if(d.boxStatus=='1' ){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
        {{# } }}
        {{# if(d.boxStatus=='1'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>
        {{# } }}
        {{# if(d.boxStatus=='2' ||d.boxStatus=='3' ||d.boxStatus=='4'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>
        {{# } }}
        {{# if(d.boxStatus=='1' ||d.boxStatus=='5'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>
        {{# } }}
    {{# } }}
<%--    {{# if(d.purchaseBpmId!=null){ }}--%>
<%--            {{# if(d.boxStatus=='2'){ }}--%>
<%--            <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="through">审批通过</a>--%>
<%--            {{# } }}--%>
<%--    {{# } }}--%>

<%--    {{# if(d.boxStatus=='1' ||d.boxStatus=='2' ||d.boxStatus=='3'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='1'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='2'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="through">审批通过</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='2' ||d.boxStatus=='3' ||d.boxStatus=='4'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='3'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='1' ||d.boxStatus=='5'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='5'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="reduction">还原</a>--%>
<%--    {{# } }}--%>
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/ExportBusiness/procurement.js"></script>
